package cn.edu.sdjzu.xg.eagle.Service;

import cn.edu.sdjzu.xg.eagle.entity.Organization;

import java.sql.Connection;
import java.util.Collection;

public interface OrganizationDaoInterface {

    void save(Connection connection, Organization organization);

    void update(Connection connection, Organization organization);

    void delete(Connection connection, Long id);

    Organization findById(Connection connection, Long id);

    Collection<Organization> findAll(Connection connection);

    Collection<Organization> findAllChildren(Connection connection, Long parentId);
}
